package com.thinkgem.jeesite;

import com.thinkgem.jeesite.common.utils.SpringContextHolder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;

@SpringBootConfiguration
@Import(SpringContextHolder.class)
@ImportResource(locations = {
        "classpath:spring-context.xml"
        , "classpath:spring-context-activiti.xml"
        , "classpath:spring-context-jedis.xml"
        , "classpath:spring-context-shiro.xml"
})
@ImportAutoConfiguration({ ServletWebServerFactoryAutoConfiguration.class
        , HttpEncodingAutoConfiguration.class
        , TaskExecutionAutoConfiguration.class
})
public class JeeSiteApplication {

    public static void main(String[] args) {
        SpringApplication.run(JeeSiteApplication.class, args);
    }

}
